<?php
//debug data : dsm($dt_data)
  // dsm($dt_data);
	$active = 'active';
?>
<div class="dt-shop-portfolio">
	<div class="dt-shop-filter">
		<?php
			if(count($dt_data['filter']) != 0) {
				print '<ul>';
				foreach($dt_data['filter'] as $key => $row) {
					print '<li class="shop-filter '.$active.'" data-filter="'.$key.'" data-pager="0">'.$row->name.'</li>';
					$active = '';
				}
				print '</ul>';
			}
		?>
	</div>
	<div class="dt-shop-grid">
		<?php
			if(count($dt_data['grid']) != 0) {
				$active = 'active';
				foreach($dt_data['grid'] as $key => $gird) {
					if(count($gird) != 0) {
						print '<ul  class="shop-grid '.$active.' data-grid-'.$key.'">';
						foreach($gird as $nid => $row) {
							print '<li>'.$row['title'].'</li>';
						}
						print '</ul>';
						$active = '';
					}
				}
			}
		?>
	</div>
	<div class="dt-shop-load-more">
		<?php
			if($dt_data['load-more'] == 'yes') {
				print '<a href="#" class="dt-shop-load-items">Load More</a>';
			}
		?>
	</div>
</div>
